import Ajax from "@/axios/Ajax";
/**
 * 接口
 * @returns
 * post传参用data:{}
 * get:传参是params:{}
 * 默认传参是post,可以不传
 */
export function loginApi(data) {
  return Ajax({
    url: "/user/login",
    method: "post",
    data,
  });
}
/**
 * 菜单接口
 */
export function menuListApi() {
  return Ajax({
    url: "/menu/list",
    method: "get",
  });
}
/**
 * 用户信息接口
 */

export function userInfoApi(params) {
  return Ajax({
    url: "/user/info",
    method: "get",
    params,
  });
}
